<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>海贼资料管理</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="/static/layui/css/layui.css"  media="all">
</head>
<body>
<ul class="layui-nav" lay-filter="">
    <li class="layui-nav-item"><a href="/admin/login/loginout">退出</a></li>
</ul>
<fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
    <legend>海贼资料管理</legend>
</fieldset>

<a href="/admin/index/adduser" class="layui-btn">添加新的海贼资料</a>

<table class="layui-table">
    <colgroup>
        <col width="150">
        <col width="200">
        <col>
        <col>
    </colgroup>
    <thead>
    <tr>
        <th>图片</th>
        <th>名字</th>
        <th>点击量</th>
        <th>操作</th>
    </tr>
    </thead>
    <tbody>
    {volist name="chuser" id="vo"}
    <tr>
        <td><img src="{$vo.ch_img}" width="150"></td>
        <td>{$vo.ch_name}</td>
        <td>{$vo.ch_click}</td>
        <td>
            <a href="/admin/index/eduser?chid={$vo.ch_id}" class="layui-btn">编辑</a>
            <a href="/admin/index/deluser?chid={$vo.ch_id}" class="layui-btn layui-btn-danger">删除</a>
        </td>
    </tr>
    {/volist}
    </tbody>
</table>

<script src="/static/layui/layui.js" charset="utf-8"></script>
</body>
</html>